

import java.awt.Dimension;
import java.awt.Toolkit;

import GUI.MainFrame;

public class ma {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		MainFrame ventana = new MainFrame();
		//Centrar la ventana
	    Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
	    Dimension frameSize = ventana.getSize();
	    if (frameSize.height > screenSize.height) {
	      frameSize.height = screenSize.height;
	    }
	    if (frameSize.width > screenSize.width) {
	      frameSize.width = screenSize.width;
	    }
	    ventana.setLocation((screenSize.width - frameSize.width) / 2, (screenSize.height - frameSize.height) / 2);
	    ventana.setVisible(true);
	}

}
